package com.gitee.wsl.base

import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonPrimitive
import kotlin.jvm.JvmInline


@Serializable
@JvmInline
value class StringOrInt(val value: JsonPrimitive) {
    companion object {
        fun int(value: Int): StringOrInt = StringOrInt(JsonPrimitive(value))
        fun string(value: String): StringOrInt = StringOrInt(JsonPrimitive(value))
    }
}